import request from '@/utils/request'
// 发布机构列表及相关
export function getPublishList(query) {
  return request({
    url: '/publishOrgan/list',
    method: 'get',
    params: query
  })
}

export function editPublish(query) {
    // {id: 1, name: "上海市人民政府办公厅", level: "地方政府规章", shortNameList:[{name:'简称1',id:3},{name:'简称2'}] }
  return request({
    url: '/publishOrgan/add',
    method: 'post',
    data: query
  })
}

export function deletePublish(query) {
  return request({
    url: '/publishOrgan/delete',
    method: 'get',
    params: query
  })
}
